package com.scvtc.service.party;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scvtc.domain.ResResult;
import com.scvtc.domain.entity.party.PartyDocumention;
import com.scvtc.domain.vo.PageVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PartyDocumentionervice extends IService<PartyDocumention> {
    ResResult<PageVo<List<PartyDocumention>>> getAllInfo(Long current, Long size, PartyDocumention partyDocumention);
    /**
     * 添加一个文档
     *
     * @param documention
     * @return
     */
    ResResult<?> addDocument(PartyDocumention documention);

    /**
     * 修改文件
     *
     * @param documention
     * @return
     */
    ResResult<?> updateDocument(PartyDocumention documention);

    /**
     * 删除单个学生
     *
     * @param id
     * @return
     */
    @Transactional
    ResResult<?> deleteDocument(Long id);

    /**
     * 删除多个学生
     *
     * @param ids
     * @return
     */
    @Transactional
    ResResult<?> deleteMultipleDelete(Long[] ids);


}
